package models_main

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
	"time"
)

type AppDownload struct {
	Id       uint      `json:"id"`
	DeviceId string    `json:"device_id"`
	Source   string    `json:"source"`
	Time     time.Time `json:"time"`
	Sem      int       `json:"sem"`
	Duration int       `json:"duration"`
}

func (AppDownload) TableName() string {
	return fmt.Sprintf("%sapp_download", models.Prefix)
}
